//
//  CQAccount.h
//  01-OC微博
//
//  Created by 陈乾 on 15/11/2.
//  Copyright © 2015年 陈乾. All rights reserved.
//  用户账号模型
/*
 
 "access_token" = "2.00c7IL2CynlhaB23f3186962uG2CaC";
 "expires_in" = 157679999;
 "remind_in" = 157679999;
 uid = 2145222730;
 */

#import <Foundation/Foundation.h>

@interface CQAccount : NSObject<NSCoding>

//访问令牌
@property (nonatomic, copy) NSString *access_token;
//有效时间
@property (nonatomic, copy) NSString *expires_in;
//用户id
@property (nonatomic, copy) NSString *uid;

//时间
@property (nonatomic, strong)NSDate *expires_date;

-(instancetype)initWithDic:(NSDictionary*)dic;
+(instancetype)accountWithDic:(NSDictionary*)dic;

@end
